/*
 * @Author: Jeanne
 * @Date: 2023-09-07 09:53:15
 * @LastEditors: Jeanne
 * @LastEditTime: 2023-09-07 10:40:36
 * @Description: 
 */
#ifndef UI_SYS_HOME_BTN_H_
#define UI_SYS_HOME_BTN_H_

#ifdef __cplusplus
extern "C"
{
#endif
/*------------------------------- Includes ----------------------------------*/
#include "my_conf.h"
#include "lvgl.h"
/*----------------------------- 全局定义 ------------------------------*/

/*----------------------------- 全局类型 -----------------------------*/
typedef enum HOME_BTN_CODE_E_
{
    HOME_BTN_CODE_HOME,
    HOME_BTN_CODE_SETTINGS,
    HOME_BTN_CODE_THEME,
    HOME_BTN_CODE_EXPLAIN,
} HOME_BTN_CODE_E;

typedef void (*home_btn_event_cb_t)(int code, void *cb_arg);
typedef struct ui_sys_home_btn_info_t_
{
    lv_obj_t *cont;
    lv_obj_t *btn;
    lv_obj_t *btn_items[4];
    home_btn_event_cb_t cb;
    void *cb_arg;
} ui_sys_home_btn_info_t;
/*----------------------------- 全局外部变量 --------------------------*/

/*------------------------ 全局函数原型 -----------------------*/
ui_sys_home_btn_info_t *ui_sys_home_btn_create(home_btn_event_cb_t cb, void *cb_arg);
int ui_sys_home_btn_show(ui_sys_home_btn_info_t *info);
int ui_sys_home_btn_delete(ui_sys_home_btn_info_t *info);


#ifdef __cplusplus
}
#endif
#endif//UI_SYS_HOME_BTN_H_
